package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * courses对象 environmental_courses
 * 
 * @author zrj
 * @date 2025-07-12
 */
public class EnvironmentalCourses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程唯一id */
    private Long courseId;

    /** 课程名 */
    @Excel(name = "课程名")
    private String courseName;

    /** 课程简介（富文本） */
    @Excel(name = "课程简介", readConverterExp = "富=文本")
    private String description;

    /** 封面图链接 */
    @Excel(name = "封面图链接")
    private String coverUrl;

    /** 总课时数 */
    @Excel(name = "总课时数")
    private Long totalLessons;

    /** 单节课平均时长 */
    @Excel(name = "单节课平均时长")
    private Long duration;

    /** 讲师id（关联用户表） */
    @Excel(name = "讲师id", readConverterExp = "关=联用户表")
    private Long teacherId;

    /** 精选标识：0=普通, 1=精选 */
    @Excel(name = "精选标识：0=普通, 1=精选")
    private Integer featuredFlag;

    /** 课程评分 */
    @Excel(name = "课程评分")
    private Long courseScore;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String ext4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String ext5;

    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }
    public void setTotalLessons(Long totalLessons) 
    {
        this.totalLessons = totalLessons;
    }

    public Long getTotalLessons() 
    {
        return totalLessons;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setFeaturedFlag(Integer featuredFlag) 
    {
        this.featuredFlag = featuredFlag;
    }

    public Integer getFeaturedFlag() 
    {
        return featuredFlag;
    }
    public void setCourseScore(Long courseScore) 
    {
        this.courseScore = courseScore;
    }

    public Long getCourseScore() 
    {
        return courseScore;
    }
    public void setExt4(String ext4) 
    {
        this.ext4 = ext4;
    }

    public String getExt4() 
    {
        return ext4;
    }
    public void setExt5(String ext5) 
    {
        this.ext5 = ext5;
    }

    public String getExt5() 
    {
        return ext5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("description", getDescription())
            .append("coverUrl", getCoverUrl())
            .append("totalLessons", getTotalLessons())
            .append("duration", getDuration())
            .append("teacherId", getTeacherId())
            .append("featuredFlag", getFeaturedFlag())
            .append("courseScore", getCourseScore())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("ext4", getExt4())
            .append("ext5", getExt5())
            .toString();
    }
}
